package com.example.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import com.example.model.AddUserCommentDTO;

@Mapper
public interface ConUserCommentMapper {
    @Insert("insert into con_user_comment(userId, commentId) values(#{userId}, #{commentId})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int addUserComment(AddUserCommentDTO addUserCommentDTO);
}
